from chatbot.bot.domain.serializable import Serializable


class Response(Serializable):
    __slots__ = (
        'conversation',
        'client_id',
        'question',
        'question_type',
        'chat_id',
        'answer',
        'answer_at',
        'answer_type',  # 答案内容的类型
        'answer_source_type',  # 答案源引知识的类型
        'answer_source_id',
        'match_type',  # 匹配类型
        'need_comment',  # 是否需要答案评价
    )

    def __init__(self, question=None, answer=None, **kwargs):
        self.question = question
        self.answer = answer
